#include <iostream>
#include <bits/stdc++.h>
#include <ctemplate/template.h>
using namespace std;
int main()
{
    std::string in_html = "./test.html";
    string value = "Hello World";

    ctemplate::TemplateDictionary root ("test");
    root.SetValue("key",value);
    ctemplate::Template *tpl = ctemplate::Template::GetTemplate(in_html,ctemplate::DO_NOT_STRIP );

    //
    std::string out_html;
    tpl->Expand( &out_html,&root);
    std::cout<<out_html<<std::endl; 
    return 0;
}